import request from '../utils/request';

// 获取用户列表
export const getUsers = (params) => {
  return request.get('/users', { params });
};

// 获取用户信息
export const getUserById = (id) => {
  return request.get(`/users/${id}`);
};

// 更新用户信息
export const updateUser = (id, data) => {
  return request.put(`/users/${id}`, data);
};

// 获取用户余额
export const getUserBalance = (id) => {
  return request.get(`/users/${id}/balance`);
};
